package com.qnkf.feign;

import com.alibaba.fastjson.JSONObject;
import com.qnkf.fallback.LoginFallBack;
import com.qnkf.model.ResultModel;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@Component
@FeignClient(value = "login-service", fallback = LoginFallBack.class, decode404 = true)
public interface LoginFegin {

    /**
     * loginPhone
     * @param request
     * @return
     */
    @PostMapping("home/loginPhone")
    ResultModel loginPhone(@RequestBody JSONObject request);
}
